package com.qidian.tcba.oss.model;

import java.util.Date;

public class Attachment {
    private int id;

    private String ownerType;

    private int ownerId;

    private String name;

    private String objName;

    private String path;

    private String type;

    private Long size;

    private int businessType;

    private Date createdAt;

    private Date updatedAt;

    public Attachment() {
    }

    public Attachment(String ownerType, int ownerId, String name, String objName, String path, String type, Long size, int businessType) {
        this.ownerType = ownerType;
        this.ownerId = ownerId;
        this.name = name;
        this.objName = objName;
        this.path = path;
        this.type = type;
        this.size = size;
        this.businessType = businessType;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOwnerType() {
        return ownerType;
    }

    public void setOwnerType(String ownerType) {
        this.ownerType = ownerType;
    }

    public int getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(int ownerId) {
        this.ownerId = ownerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getObjName() {
        return objName;
    }

    public void setObjName(String objName) {
        this.objName = objName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public int getBusinessType() {
        return businessType;
    }

    public void setBusinessType(int businessType) {
        this.businessType = businessType;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }
}